package pe.edu.sistemas.postgrado.samupg.business.service.impl.marketing;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import pe.edu.sistemas.postgrado.samupg.business.service.marketing.ExamenService;
import pe.edu.sistemas.postgrado.samupg.repository.dao.ExamenDAO;
import pe.edu.sistemas.postgrado.samupg.domain.model.Pregunta;

/**
 *
 * @author Marlon
 */
@Service
@Transactional(propagation= Propagation.SUPPORTS, readOnly=true)
public class ExamenServiceImpl implements ExamenService {

    @Resource
    private ExamenDAO examenDAO;
    
    @Override
    public List<Pregunta> getPreguntasXPeriodo(int periodo) {
        return examenDAO.getPreguntasxId(periodo);
    }
    
}
